import request from '@/utils/request'
// 获取支柱列表
export function getPillar(query) {
  return request({
    url: '/gis/pillar/getPillarList',
    method: 'get',
    params: query
  })
}
export function getPillarInter(query) {
  return request({
    url: '/gis/pillar/getPillarListInter',
    method: 'get',
    params: query
  })
}
// 获取站场列表
export function getSite(query) {
  return request({
    url: '/gis/site/getLineSiteList',
    method: 'get',
    params: query
  })
}
export function getSiteInter(query) {
  return request({
    url: '/gis/site/getSiteListInter',
    method: 'get',
    params: query
  })
}
// 获取线路区站列表
export function getLineSite(query) {
  return request({
    url: '/gis/lineSite/getLineSiteList',
    method: 'get',
    params: query
  })
}
export function getLineSiteInter(query) {
  return request({
    url: '/gis/lineSite/getLineSiteListInter',
    method: 'get',
    params: query
  })
}
// 根据线路code获取区间
export function getLineSiteByLineCode(lineId) {
  return request({
    url: `/basic/lineSite/listByLineId/${lineId}`,
    method: 'get'
  })
}
// 获取线路列表
export function getLine(query) {
  return request({
    url: '/gis/line/getLineList',
    method: 'get',
    params: query
  })
}
export function getLineInter(query) {
  return request({
    url: '/gis/line/getLineListInter',
    method: 'get',
    params: query
  })
}
// 获取锚段列表
export function getAnchor(query) {
  return request({
    url: '/gis/anchor/getAnchorList',
    method: 'get',
    params: query
  })
}
export function getAnchorInter(query) {
  return request({
    url: '/gis/anchor/getAnchorListInter',
    method: 'get',
    params: query
  })
}
// 获取上下道口
export function getRoadjunction(query) {
  return request({
    url: '/gis/roadjunction/getRoadJunctionListInter',
    method: 'get',
    params: query
  })
}
// 获取变配电所
export function getBdsSubstation(query) {
  return request({
    url: '/gis/bdssubstation/getBdsSubstationListInter',
    method: 'get',
    params: query
  })
}
// 获取交叉跨越线
export function getCrossingLine(query) {
  return request({
    url: '/gis/jcwenevcrossingline/getJcwEnevCrossingLineListInter',
    method: 'get',
    params: query
  })
}
// 获取跨线桥
export function getCrossBridge(query) {
  return request({
    url: '/gis/jcwenevcrossbridge/getJcwEnevCrossBridgeListInter',
    method: 'get',
    params: query
  })
}
// 获取重污区段
export function getPollutions(query) {
  return request({
    url: '/gis/pollution/getPollutionList',
    method: 'get',
    params: query
  })
}
// 获取关键设备
export function getJcwDevice(query) {
  return request({
    url: '/gis/device/getDeviceListInter',
    method: 'get',
    params: query
  })
}
// 获取6C设备
export function getDevice6c(query) {
  return request({
    url: '/gis/device6c/getDevice6cListInter',
    method: 'get',
    params: query
  })
}
// 获取驻地
export function getStation(query) {
  return request({
    url: '/gis/station/getStationList',
    method: 'get',
    params: query
  })
}
// 关键字查询接口
export function search(url, query) {
  return request({
    url: '/gis' + url,
    method: 'get',
    params: query
  })
}
// 根据devClassCode查询devClassName
export function queryClassNameByCode(query) {
  return request({
    url: '/basic/jcwDevClass/listTableTree',
    method: 'get',
    params: query
  })
}
// 获取沿线视频
export function getLineMonitor(query) {
  return request({
    url: '/gis/camera/list/within',
    method: 'get',
    params: query
  })
}

